package day0520;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int year = sc.nextInt();
        int month = sc.nextInt();
        int days=0;
        if(month==1 || month==3 || month==5 || month==7 || month==8 ||month==10 ||month==12){
            days=31;
        }else if(month==4 || month==6 || month==9 || month==11){
            days=30;
        }else if(month==2){
            if((year%4==0 && year%100!=0) || year%400==0){
                days=29;
            }else{
                days=28;
            }
        }else{
            System.out.println("月份输入有误");
        }
        System.out.println(year+"年的"+month+"月有："+days+"天");
    }
}
